package com.zyy.state.demo02;

/**
 * @Description: 运行状态 电梯可以停止
 */
public class RunningState extends LiftState {
    @Override
    public void open() {
        //do nothing
    }

    @Override
    public void close() {
        //do nothing

    }

    @Override
    public void run() {

        System.out.println("电梯运行中。。。");

    }

    @Override
    public void stop() {
        super.context.setLiftState(Context.STOPPING_STATE);
        super.context.getLiftState().stop();
    }
}
